import { IMessage } from 'state/chat';

import AuthorWithAvatar from './authWithAvatar';
import AuthorWithText from './authorWithText';

interface Props {
  message: IMessage;
  show?: boolean;
  children: JSX.Element;
}

export const authorBoxWidth = 40;

export default function AuthorDeepexi(props: Props) {
  return props.message.indent ? (
    <AuthorWithText {...props} />
  ) : (
    <AuthorWithAvatar {...props} />
  );
}
